import { createApp } from 'vue'
import App from '@/App.vue'
import '@/style/reset.scss'
// 引入两个全局组件
import  HospitalTop from '@/components/hospital_top/index.vue'
import HospitalBottom from '@/components/hospital_bottom/index.vue'
import Login from '@/components/login/index.vue'
// 引入路由
import router from '@/router/index'
// 引入element插件
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// element 国际化
// @ts-ignore
import zhCn from 'element-plus/es/locale/lang/zh-cn'
// 引入pinia
import pinia from '@/store'
const app=createApp(App)
app.component('HospitalTop',HospitalTop)
app.component('HospitalBottom',HospitalBottom)
app.component('Login',Login)


app.use(router)
app.use(pinia)
app.use(ElementPlus, {
    locale: zhCn,
  })
app.use(ElementPlus)
app.mount('#app')
